package com.it.nongchanping.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 农产品实体类
 */
public class Product {
    private Long id;
    private String name;                // 产品名称
    private String description;         // 产品描述
    private BigDecimal price;           // 产品价格
    private String origin;              // 产地
    private String category;            // 产品分类(山区水果、手工艺品、有机粮油等)
    private String povertyBackground;   // 扶贫背景
    private String efficacy;            // 产品功效
    private String imageUrl;            // 产品图片
    private Integer stock;              // 库存数量
    private String status;              // 状态(上架/下架)
    private LocalDateTime createTime;   // 创建时间
    private LocalDateTime updateTime;   // 更新时间

    // Getter and Setter methods
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getPovertyBackground() {
        return povertyBackground;
    }

    public void setPovertyBackground(String povertyBackground) {
        this.povertyBackground = povertyBackground;
    }

    public String getEfficacy() {
        return efficacy;
    }

    public void setEfficacy(String efficacy) {
        this.efficacy = efficacy;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
} 